﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.BaseInfo.Owners
{
    public interface IOwnerRepository
    {
        /// <summary>
        /// 显示货主
        /// </summary>
        /// <param name="name"></param>
        /// <param name="phone"></param>
        /// <param name="time"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        Task<PageResponse<OwnerDto>> GetShowOwner(string name, string phone, DateTime? time,int pageindex,int pagesize);
        /// <summary>
        /// 删除货主
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteDelOwner(int id);
        /// <summary>
        /// 批量删除货主
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteDelsOwner(string ids);
        /// <summary>
        /// 编辑修改
        /// </summary>
        /// <param name="carDto"></param>
        /// <returns></returns>
        Task<int> PutUpdateOwner(OwnerDto OwnerDto);
        /// <summary>
        /// 添加货主
        /// </summary>
        /// <param name="carDto"></param>
        /// <returns></returns>
        Task<int> PostAddOwner(OwnerDto OwnerDto);
        /// <summary>
        /// 绑定外协单位
        /// </summary>
        /// <returns></returns>
        Task<List<OutsourceDto>> GetShowOutsource();
    }
}
